package com.ruoyi.mobile.project.sms.service;

import com.github.pagehelper.PageHelper;
import com.ruoyi.db.sms.domain.SmsAdvertise;
import com.ruoyi.db.sms.domain.query.SmsAdvertiseQueryVo;
import com.ruoyi.db.sms.mapper.SmsAdvertiseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.List;

@Service
public class WxSmsAdvertiseService
{
    @Autowired
    private SmsAdvertiseMapper AdvertiseMapper;

    public List<SmsAdvertise> queryIndex()
    {
        SmsAdvertiseQueryVo advertiseQueryVo= new SmsAdvertiseQueryVo();
        advertiseQueryVo.setPosition(1);
        advertiseQueryVo.setEnabled(true);

        return AdvertiseMapper.selectSmsAdvertiseList(advertiseQueryVo);
    }

    public List<SmsAdvertise> querySelective(String name, String content, Integer page, Integer limit, String sort, String order)
    {
        return null;
    }

    public int updateById(SmsAdvertise ad)
    {
        return 0;
    }

    public void deleteById(Long id)
    {
    }

    public void add(SmsAdvertise ad)
    {

    }

    public SmsAdvertise findById(Integer id)
    {
        return null;
    }
}
